package com.budwk.app.sqfw.services;

import com.budwk.app.sqfw.models.Sqfw_cenSusPaper;
import com.budwk.app.sqfw.models.Sqfw_rally;
import com.budwk.app.sqfw.vo.SqfwRallyVO;
import com.budwk.app.sqfwV2.dto.TemplateFileDTO;
import com.budwk.starter.database.service.BaseService;
import org.nutz.dao.Cnd;

import java.util.List;

/**
 * @program: wk-mini
 * @description: 社区活动
 * @author: LJT
 * @create: 2023-11-14 10:01
 **/
public interface SqfwRallyForAdminService  extends BaseService<Sqfw_rally> {

    /**
     * 组建查询条件
     *
     * @param bean
     * @param pageOrderName
     * @param pageOrderBy
     * @return
     */
    Cnd buildConditionForQueryToCnd(SqfwRallyVO bean);

    /**
     * 删除
     * @param id
     */
    void deleteRally(String id);

    /**
     * 文件下载
     * @return
     */
    TemplateFileDTO downloadFile(SqfwRallyVO bean, List<String> ids);

    /**
     * 检查是否有下载数据
     * @param ids
     * @return
     */
    List<TemplateFileDTO> checkDowloadData(SqfwRallyVO bean, List<String> ids);
}
